import Vue from 'vue'
import Router from 'vue-router'

import User from '@/view/user/index.vue'
import Login from '@/view/login/index.vue'
import Drug from '@/view/drug/index.vue'
import Feedback from '@/view/feedback/index.vue'

Vue.use(Router)
export default new Router({
  routes:[
    {
      path:'/',
      redirect:'/drug',
    },
    {
      path: '/drug',
      component: Drug,
      meta: {
        title: '药品说明书管理',
        auth: []
      },
    },
    {
      path: '/user',
      component: User,
      meta: {
        title: '用户管理',
        auth: []
      },
    },
    {
      path: '/feedback',
      component: Feedback,
      meta: {
        title: '用户反馈管理',
        auth: []
      },
    },
    {
      path:'/login',
      component: Login,
    }
  ]
})